package com.panda.service;

import com.panda.dao.BinaryDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BinaryServiceImpl implements BinaryService {


    private BinaryDao binaryDao;

    @Autowired
    public void setBinaryDao(BinaryDao binaryDao) {
        this.binaryDao = binaryDao;
    }

    @Override
    public void save(String pre, byte[] body) {

        binaryDao.save(pre, body);

    }

    @Override
    public byte[] get(String pre) {
        return binaryDao.get(pre);
    }
}
